package com.library.model.serviceimple;

import java.util.List;

import com.library.model.dao.NoticeDAO;
import com.library.model.dto.notice.NoticeDTO;
import com.library.model.service.NoticeService;

public class NoticeServiceImple implements NoticeService {
	
	private NoticeDAO noticedao;

	public void setNoticedao(NoticeDAO noticedao) {
		this.noticedao = noticedao;
	}

	@Override
	public void insertNoticeWrite(NoticeDTO dto) {
		noticedao.insertNoticeWrite(dto);
	}


	@Override
	public List<NoticeDTO> getAllNotice() {
		return noticedao.getAllNotice();
	}

	@Override
	public NoticeDTO getNotice(int aSeq) {
		return noticedao.getNotice(aSeq);
	}

	@Override
	public NoticeDTO updateNotice(NoticeDTO dto) {
		
		return noticedao.updateNotice(dto);
	}

	@Override
	public void deleteNotice(int aSeq) {
		
		noticedao.deleteNotice(aSeq);
		
	}

}
